package model

import (
	"time"
)

// Article 定义分类结构体
type Article struct {
	ArticleID   int64     `db:"id"`
	ArticleName string    `db:"article_name"`
	CreateTime  time.Time `db:"create_time"`
}

// ArticleDetails 文章详情页才需要显示content
// 为了仅在需要content才返回，提升效率
type ArticleDetails struct {
	Article
	ArticleContent string `db:"article_content"`
	Category       model.Category
}

// ArticleRecord 底部上一页下一页显示内容
type ArticleRecord struct {
	Article
	Category model.Category
}
